package suo;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

//SqlSession接口，及其实现类，封装CRUD
public interface SqlSession {

    public <E> List<E> selectList(String statementId,Object... param) throws SQLException, InvocationTargetException, IntrospectionException, InstantiationException, IllegalAccessException, NoSuchFieldException;
    public <T> T selectOne(String statementId,Object... param) throws Exception;

    public void close() throws SQLException;

    public <T> T getMappper(Class<?> mapperClass);
}
